function rand(low, high)
{	
	return low  +  Math.random() * ( high - low );
}

function degToRad( d )
{
	return (Math.PI/180.) * d;
}

function radToDeg( r )
{
	return (180./Math.PI) * r;
}